﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Student:Person
    {
        private string major;
        private string grade;

        public void Hello()
        {
            base.Hello();
            Console.WriteLine("我的专业是{0}，我是{1}班的",this.Major,this.Grade);
        }

        public string Major
        {
            get { return this.major; }
            set { this.major = value; }
        }
        public string Grade
        {
            get { return this.grade; }
            set { this.grade = value; }
        }
    }
}
